<template>
	<van-popup v-model="visible" @close="$emit('close')">
		<slot></slot>
	</van-popup>
</template>

<script>
export default {
	props: {
		show: Boolean,
	},
	data() {
		return {
			visible: false,
		}
	},
	watch: {
		show() {
			this.visible = this.show
		},
	},
}
</script>

<style></style>
